/**
 * SLF4jBridgeContextInitializer
 *
 * @author Chris Pratt
 *
 * 7/13/2011
 */
package com.anodyzed.onyx.log.slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.slf4j.bridge.SLF4JBridgeHandler;

public class SLF4jBridgeContextInitializer implements ServletContextListener {

  /**
   * The Servlet Context is being constructed, initialize the java.util.logging 
   * -> SLF4j Bridge
   *
   * @param event The Servlet Context Event
   */
  @Override
  public void contextInitialized (ServletContextEvent event) {
    SLF4JBridgeHandler.install();
  } //contextInitialized

  /**
   * The Servlet Context is being destroyed, clean up
   *
   * @param event The Servlet Context Event
   */
  @Override
  public void contextDestroyed (ServletContextEvent event) {
  } //contextDestroyed
  
} //*SLF4jBridgeContextInitializer

